import requests
#发送请求
aa = requests.get(url="http://www.baidu.com")
#查看响应
#查看响应状态码
print(aa.status_code)

aa.encoding = "UTF-8"
print(aa.text)
